import type { AppRouterRecordRaw } from '../types'
import { RootPage } from '@/layouts'

const user: AppRouterRecordRaw = {
  path: '/user',
  name: 'user',
  component: RootPage,
  redirect: '/user/index',
  meta: {
    title: '用户管理',
    icon: 'AccountCircleRound',
    sort: 2
  },
  children: [
    {
      path: 'index',
      name: 'user-index',
      component: () => import('@/views/user/index.vue'),
      meta: {
        title: '用户列表',
        icon: 'AccountCircleRound',
        sort: 1
      }
    }
  ]
}

export default user
